﻿#set($id = $product.Id)
#set($uri = $product.Uri)
#set($escapedName = $product.HtmlEscapedName)
#set($evaluationRate = $product.EvaluationRate)
<div class="wrapper">
	<h3><a title="$escapedName" href="$uri">$product.Name</a></h3>
	<p class="desc"><a title="$escapedName" href="$uri">$product.DescriptionShort</a></p>
	<div class="photo"><a title="$escapedName" href="$uri">$product.GetImageTag(29)</a></div>
  #if ($product.IsInStock)
      <p class="preco">
      <a title="$escapedName" href="$uri">
  #if ($product.HasBestPrice)
      <em class="valor-de">De: <strong>$product.ListPrice</strong></em><br/>
  #end
  <em class="valor-por">Por: <strong>$product.BestPrice</strong></em>
  <em class="valor-dividido">
  #if ($product.NumbersOfInstallment > 1)
      ou <strong>${product.NumbersOfInstallment}x</strong> de <strong>$product.InstallmentValue</strong>
  #else
      <em class="valor-por">à vista</em>
  #end
      </em></a></p>
  #else
      <p class="esgotado">Produto Esgotado</p> 
  #end
<div class="wrapperAmountInCart">
	$product.AmountInCart
	$product.BottomBuyAsynchronous
</div>
$product.Compare
</div>